import { Subject } from 'rxjs';

/**
 * MAINFORM_ORGUSER
 *
 * @export
 * @class Main2Data
 */
export class Main2Data {

    /**
     * 忽略属性值变化
     *
     * @type {boolean}
     * @memberof Main2Data
     */
    public ignorefieldvaluechange: boolean = false;

    /**
     * 属性值变化
     *
     * @type {Subject<any>}
     * @memberof Main2Data
     */
    public fieldValueChange: Subject<any> = new Subject();

    /**
     * 更新时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfupdatedate: any = null;

    /**
     * 设置srfupdatedate值
     *
     * @memberof Main2Data
     */
    set srfupdatedate(val: any) {
        const oldVal = this._srfupdatedate;
        this._srfupdatedate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfupdatedate', value: val });
        }
    }

    /**
     * 获取srfupdatedate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfupdatedate(): any {
        return this._srfupdatedate;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srforikey: any = null;

    /**
     * 设置srforikey值
     *
     * @memberof Main2Data
     */
    set srforikey(val: any) {
        const oldVal = this._srforikey;
        this._srforikey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srforikey', value: val });
        }
    }

    /**
     * 获取srforikey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srforikey(): any {
        return this._srforikey;
    }

    /**
     * 组织人员标识
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfkey: any = null;

    /**
     * 设置srfkey值
     *
     * @memberof Main2Data
     */
    set srfkey(val: any) {
        const oldVal = this._srfkey;
        this._srfkey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfkey', value: val });
        }
    }

    /**
     * 获取srfkey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfkey(): any {
        return this._srfkey;
    }

    /**
     * 人员名称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfmajortext: any = null;

    /**
     * 设置srfmajortext值
     *
     * @memberof Main2Data
     */
    set srfmajortext(val: any) {
        const oldVal = this._srfmajortext;
        this._srfmajortext = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfmajortext', value: val });
        }
    }

    /**
     * 获取srfmajortext值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfmajortext(): any {
        return this._srfmajortext;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srftempmode: any = null;

    /**
     * 设置srftempmode值
     *
     * @memberof Main2Data
     */
    set srftempmode(val: any) {
        const oldVal = this._srftempmode;
        this._srftempmode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srftempmode', value: val });
        }
    }

    /**
     * 获取srftempmode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srftempmode(): any {
        return this._srftempmode;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfuf: any = null;

    /**
     * 设置srfuf值
     *
     * @memberof Main2Data
     */
    set srfuf(val: any) {
        const oldVal = this._srfuf;
        this._srfuf = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfuf', value: val });
        }
    }

    /**
     * 获取srfuf值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfuf(): any {
        return this._srfuf;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfdeid: any = null;

    /**
     * 设置srfdeid值
     *
     * @memberof Main2Data
     */
    set srfdeid(val: any) {
        const oldVal = this._srfdeid;
        this._srfdeid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfdeid', value: val });
        }
    }

    /**
     * 获取srfdeid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfdeid(): any {
        return this._srfdeid;
    }

    /**
     * 
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _srfsourcekey: any = null;

    /**
     * 设置srfsourcekey值
     *
     * @memberof Main2Data
     */
    set srfsourcekey(val: any) {
        const oldVal = this._srfsourcekey;
        this._srfsourcekey = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'srfsourcekey', value: val });
        }
    }

    /**
     * 获取srfsourcekey值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get srfsourcekey(): any {
        return this._srfsourcekey;
    }

    /**
     * 所属组织
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgname: any = null;

    /**
     * 设置orgname值
     *
     * @memberof Main2Data
     */
    set orgname(val: any) {
        const oldVal = this._orgname;
        this._orgname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgname', value: val });
        }
    }

    /**
     * 获取orgname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgname(): any {
        return this._orgname;
    }

    /**
     * 所属部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsectorname: any = null;

    /**
     * 设置orgsectorname值
     *
     * @memberof Main2Data
     */
    set orgsectorname(val: any) {
        const oldVal = this._orgsectorname;
        this._orgsectorname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsectorname', value: val });
        }
    }

    /**
     * 获取orgsectorname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsectorname(): any {
        return this._orgsectorname;
    }

    /**
     * 人员名称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgusername: any = null;

    /**
     * 设置orgusername值
     *
     * @memberof Main2Data
     */
    set orgusername(val: any) {
        const oldVal = this._orgusername;
        this._orgusername = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgusername', value: val });
        }
    }

    /**
     * 获取orgusername值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgusername(): any {
        return this._orgusername;
    }

    /**
     * 用户编号
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _usercode: any = null;

    /**
     * 设置usercode值
     *
     * @memberof Main2Data
     */
    set usercode(val: any) {
        const oldVal = this._usercode;
        this._usercode = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'usercode', value: val });
        }
    }

    /**
     * 获取usercode值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get usercode(): any {
        return this._usercode;
    }

    /**
     * 部门人员关系
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsecusertypename: any = null;

    /**
     * 设置orgsecusertypename值
     *
     * @memberof Main2Data
     */
    set orgsecusertypename(val: any) {
        const oldVal = this._orgsecusertypename;
        this._orgsecusertypename = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsecusertypename', value: val });
        }
    }

    /**
     * 获取orgsecusertypename值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsecusertypename(): any {
        return this._orgsecusertypename;
    }

    /**
     * 头衔名称
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _titlename: any = null;

    /**
     * 设置titlename值
     *
     * @memberof Main2Data
     */
    set titlename(val: any) {
        const oldVal = this._titlename;
        this._titlename = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'titlename', value: val });
        }
    }

    /**
     * 获取titlename值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get titlename(): any {
        return this._titlename;
    }

    /**
     * 启用标志
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _validflag: any = null;

    /**
     * 设置validflag值
     *
     * @memberof Main2Data
     */
    set validflag(val: any) {
        const oldVal = this._validflag;
        this._validflag = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'validflag', value: val });
        }
    }

    /**
     * 获取validflag值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get validflag(): any {
        return this._validflag;
    }

    /**
     * 人员级别
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orguserlevelname: any = null;

    /**
     * 设置orguserlevelname值
     *
     * @memberof Main2Data
     */
    set orguserlevelname(val: any) {
        const oldVal = this._orguserlevelname;
        this._orguserlevelname = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orguserlevelname', value: val });
        }
    }

    /**
     * 获取orguserlevelname值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orguserlevelname(): any {
        return this._orguserlevelname;
    }

    /**
     * 人员排序
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _ordervalue: any = null;

    /**
     * 设置ordervalue值
     *
     * @memberof Main2Data
     */
    set ordervalue(val: any) {
        const oldVal = this._ordervalue;
        this._ordervalue = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'ordervalue', value: val });
        }
    }

    /**
     * 获取ordervalue值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get ordervalue(): any {
        return this._ordervalue;
    }

    /**
     * 备注
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _memo: any = null;

    /**
     * 设置memo值
     *
     * @memberof Main2Data
     */
    set memo(val: any) {
        const oldVal = this._memo;
        this._memo = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'memo', value: val });
        }
    }

    /**
     * 获取memo值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get memo(): any {
        return this._memo;
    }

    /**
     * 电话
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _reserver: any = null;

    /**
     * 设置reserver值
     *
     * @memberof Main2Data
     */
    set reserver(val: any) {
        const oldVal = this._reserver;
        this._reserver = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'reserver', value: val });
        }
    }

    /**
     * 获取reserver值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get reserver(): any {
        return this._reserver;
    }

    /**
     * 建立人
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _createman: any = null;

    /**
     * 设置createman值
     *
     * @memberof Main2Data
     */
    set createman(val: any) {
        const oldVal = this._createman;
        this._createman = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'createman', value: val });
        }
    }

    /**
     * 获取createman值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get createman(): any {
        return this._createman;
    }

    /**
     * 建立时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _createdate: any = null;

    /**
     * 设置createdate值
     *
     * @memberof Main2Data
     */
    set createdate(val: any) {
        const oldVal = this._createdate;
        this._createdate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'createdate', value: val });
        }
    }

    /**
     * 获取createdate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get createdate(): any {
        return this._createdate;
    }

    /**
     * 更新人
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _updateman: any = null;

    /**
     * 设置updateman值
     *
     * @memberof Main2Data
     */
    set updateman(val: any) {
        const oldVal = this._updateman;
        this._updateman = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'updateman', value: val });
        }
    }

    /**
     * 获取updateman值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get updateman(): any {
        return this._updateman;
    }

    /**
     * 更新时间
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _updatedate: any = null;

    /**
     * 设置updatedate值
     *
     * @memberof Main2Data
     */
    set updatedate(val: any) {
        const oldVal = this._updatedate;
        this._updatedate = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'updatedate', value: val });
        }
    }

    /**
     * 获取updatedate值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get updatedate(): any {
        return this._updatedate;
    }

    /**
     * 组织人员标识
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orguserid: any = null;

    /**
     * 设置orguserid值
     *
     * @memberof Main2Data
     */
    set orguserid(val: any) {
        const oldVal = this._orguserid;
        this._orguserid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orguserid', value: val });
        }
    }

    /**
     * 获取orguserid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orguserid(): any {
        return this._orguserid;
    }

    /**
     * 所属部门
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsectorid: any = null;

    /**
     * 设置orgsectorid值
     *
     * @memberof Main2Data
     */
    set orgsectorid(val: any) {
        const oldVal = this._orgsectorid;
        this._orgsectorid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsectorid', value: val });
        }
    }

    /**
     * 获取orgsectorid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsectorid(): any {
        return this._orgsectorid;
    }

    /**
     * 部门人员关系
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgsecusertypeid: any = null;

    /**
     * 设置orgsecusertypeid值
     *
     * @memberof Main2Data
     */
    set orgsecusertypeid(val: any) {
        const oldVal = this._orgsecusertypeid;
        this._orgsecusertypeid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgsecusertypeid', value: val });
        }
    }

    /**
     * 获取orgsecusertypeid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgsecusertypeid(): any {
        return this._orgsecusertypeid;
    }

    /**
     * 所属组织
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orgid: any = null;

    /**
     * 设置orgid值
     *
     * @memberof Main2Data
     */
    set orgid(val: any) {
        const oldVal = this._orgid;
        this._orgid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orgid', value: val });
        }
    }

    /**
     * 获取orgid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orgid(): any {
        return this._orgid;
    }

    /**
     * 人员级别
     *
     * @private
     * @type {*}
     * @memberof Main2Data
     */
    private _orguserlevelid: any = null;

    /**
     * 设置orguserlevelid值
     *
     * @memberof Main2Data
     */
    set orguserlevelid(val: any) {
        const oldVal = this._orguserlevelid;
        this._orguserlevelid = val;
        if (!Object.is(oldVal, val) && !this.ignorefieldvaluechange) {
            this.fieldValueChange.next({ name: 'orguserlevelid', value: val });
        }
    }

    /**
     * 获取orguserlevelid值
     *
     * @type {*}
     * @memberof Main2Data
     */
    get orguserlevelid(): any {
        return this._orguserlevelid;
    }

}